package zx.x.modules.yshapp.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import zx.x.common.utils.PageUtils;
import zx.x.common.utils.R;
import zx.x.modules.yshapp.entity.CommunityBulletinEntity;
import zx.x.modules.yshapp.service.CommunityBulletinService;

import java.util.Arrays;
import java.util.Map;


/**
 *
 * @author x
 * @email x
 */
@RestController
@RequestMapping("yshapp/communitybulletin")
public class CommunityBulletinAppController {
    @Autowired
    private CommunityBulletinService communityBulletinService;

    /**
     * 列表
     */
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params){
        PageUtils page = communityBulletinService.queryPage(params);
        return R.ok().put("page", page);
    }
}
